package com.training.food.pojo;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
@Data
@NoArgsConstructor
@EqualsAndHashCode
@Entity
@Table( name ="retail" )
public class Retail implements Serializable {
    @Id
    private int retailId;
    @Column(name = "WSmarketId")
    private int WSmarketID;
    @Column(name = "number")
    private double number;
    @Column(name="typeDescription")
    private String typeDescription;
    @Column(name="inputTime")
    private Date inputTime;
    @Column(name = "username")
    private String username;
    @Column(name="state")
    private String state;

    public Retail(int WSmarketID, double number, String typeDescription, Date inputTime, String username, String state) {
        this.WSmarketID = WSmarketID;
        this.number=number;
        this.typeDescription = typeDescription;
        this.inputTime = inputTime;
        this.username = username;
        this.state = state;
    }

    public Retail(int retailId, String typeDescription) {
        this.retailId = retailId;
        this.typeDescription = typeDescription;
    }
}
